import com.itheima.service.AccountService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        AccountService accountService = (AccountService) classPathXmlApplicationContext.getBean("accountService");
        accountService.findAll();
    }
}
